<?php
/**
 * @package orinoco.framework
 * @subpackage request
 * @author Ryan Yonzon <rawswift@gmail.com>
 * @copyright Copyright 2008 Ryan Yonzon 
 * @license http://www.opensource.org/licenses/mit-license.php MIT License
 */

/**
 * $_POST or $_GET object container
 */ 
class holderObject {

	/**
	 * returns object values as array
	 *
	 * @param string $_arr_to_get key name
	 * @return array of object values
	 */
	public function getValueArray($_arr_to_get = NULL) {
		$_ret = array();
		
		if(isset($_arr_to_get)) {
			$_get_vars = $this->$_arr_to_get;
		} else {
			$_get_vars = $this;
		}
		
		foreach($_get_vars as $_k => $_v) {
			$_ret[$_k] = $_v->get_value();
		}
		return $_ret;
	}
	
} // end class

// -EOF-